package com.bestpractice1;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class KeyOfMap {
public static void main(String[] args) {
	Map<String, String> map=new HashMap<String, String>();
	map.put("Jharkhand", "Ranchi");
	map.put("Bihar", "Patna");
	map.put("Gujrat", "GandhiNagar");
	map.put("Karnataka", "Bangalore");
	map.put("Assam", "Dispur");
	System.out.println(map);
	Set<String> keys=map.keySet();
	for(String key:keys){
		System.out.println("State : "+key+"\tCapital : "+map.get(key));
	}
	
}
}
